import request from '@/config/axios'

// chatbase会话记录 VO
export interface ConversationVO {
}

// chatbase会话记录 API
export const ConversationApi = {
  // 查询chatbase会话记录分页
  getConversationPage: async (params: any) => {
    return await request.get({ url: `/wrzj/conversation/page`, params })
  },

  // 查询chatbase会话记录详情
  getConversation: async (id: number) => {
    return await request.get({ url: `/wrzj/conversation/get?id=` + id })
  },

  // 新增chatbase会话记录
  createConversation: async (data: ConversationVO) => {
    return await request.post({ url: `/wrzj/conversation/create`, data })
  },

  // 修改chatbase会话记录
  updateConversation: async (data: ConversationVO) => {
    return await request.put({ url: `/wrzj/conversation/update`, data })
  },

  // 删除chatbase会话记录
  deleteConversation: async (id: number) => {
    return await request.delete({ url: `/wrzj/conversation/delete?id=` + id })
  },

  // 导出chatbase会话记录 Excel
  exportConversation: async (params) => {
    return await request.download({ url: `/wrzj/conversation/export-excel`, params })
  }
}